
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>FTP · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="http.html" />
    
    
    <link rel="prev" href="dns.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Welcome
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">数据通信</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../base/basic.html">
            
                <a href="../base/basic.html">
            
                    
                    数据通信基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../base/network_and_protocol.html">
            
                <a href="../base/network_and_protocol.html">
            
                    
                    各类网络协议
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">VRP操作系统</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../vrp-system/vrp_basic.html">
            
                <a href="../vrp-system/vrp_basic.html">
            
                    
                    华为VRP操作系统讲解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../vrp-system/aaa.html">
            
                <a href="../vrp-system/aaa.html">
            
                    
                    aaa认证系统
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">交换技术</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../switch/EthernetSwitch.html">
            
                <a href="../switch/EthernetSwitch.html">
            
                    
                    Ethernet交换
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">路由技术</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../router/iprouter.html">
            
                <a href="../router/iprouter.html">
            
                    
                    IP路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../router/ospf.html">
            
                <a href="../router/ospf.html">
            
                    
                    OSPF
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../router/lan_tec.html">
            
                <a href="../router/lan_tec.html">
            
                    
                    广域网技术
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../router/is-is.html">
            
                <a href="../router/is-is.html">
            
                    
                    IS-IS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="../router/BGP.html">
            
                <a href="../router/BGP.html">
            
                    
                    BGP
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">服务技术</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="ACL.html">
            
                <a href="ACL.html">
            
                    
                    ACL访问控制列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="dhcp.html">
            
                <a href="dhcp.html">
            
                    
                    DHCP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="dns.html">
            
                <a href="dns.html">
            
                    
                    DNS
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="6.4" data-path="ftp.html">
            
                <a href="ftp.html">
            
                    
                    FTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.5" data-path="http.html">
            
                <a href="http.html">
            
                    
                    HTTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.6" data-path="http.html">
            
                <a href="http.html">
            
                    
                    NTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.7" data-path="telnet.html">
            
                <a href="telnet.html">
            
                    
                    Telnet
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >FTP</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="ftp-file-transfer-protocol-&#x6587;&#x4EF6;&#x4F20;&#x8F93;&#x534F;&#x8BAE;">FTP File Transfer Protocol &#x6587;&#x4EF6;&#x4F20;&#x8F93;&#x534F;&#x8BAE;</h1>
<p>&#x8DDF;&#x6B63;&#x5E38;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x7684;FTP&#x662F;&#x4E00;&#x4E2A;&#x4E1C;&#x897F;, &#x518D;&#x6B21;&#x4E0D;&#x505A;&#x8BE6;&#x7EC6;&#x89E3;&#x91CA;</p>
<h2 id="ftp&#x7684;&#x7279;&#x70B9;">FTP&#x7684;&#x7279;&#x70B9;</h2>
<p>FTP&#x662F;&#x5178;&#x578B;&#x7684;C/S&#x67B6;&#x6784;</p>
<p>&#x4F20;&#x8F93;&#x6A21;&#x5F0F;&#x5206;&#x4E3A;&#x4E24;&#x79CD;:</p>
<p>ASCII&#x6A21;&#x5F0F;: &#x7528;&#x4E8E;&#x4F20;&#x8F93;&#x6587;&#x4EF6;</p>
<p>BInary&#x6A21;&#x5F0F;: &#x7528;&#x4E8E;&#x4F20;&#x8F93;&#x547D;&#x4EE4;, &#x53EF;&#x6267;&#x884C;&#x6587;&#x4EF6;, &#x56FE;&#x7247;</p>
<h2 id="&#x5DE5;&#x4F5C;&#x6A21;&#x5F0F;">&#x5DE5;&#x4F5C;&#x6A21;&#x5F0F;</h2>
<p>FTP&#x4F20;&#x8F93;&#x65F6;&#x7684;&#x5DE5;&#x4F5C;&#x6A21;&#x5F0F;&#x5206;&#x6210;&#x4E3B;&#x52A8;&#x548C;&#x88AB;&#x52A8;&#x6A21;&#x5F0F;, &#x4F46;&#x4E24;&#x79CD;&#x90FD;&#x9700;&#x8981;&#x4E24;&#x6B21;TCP&#x8FDE;&#x63A5;&#x53BB;&#x5B8C;&#x6210;&#x6570;&#x636E;&#x548C;&#x547D;&#x4EE4;&#x7684;&#x8FDE;&#x63A5;</p>
<ol>
<li><p>C&#x5411;S:21&#x53D1;&#x9001;TCP&#x8FDE;&#x63A5;&#x8BF7;&#x6C42;</p>
</li>
<li><p>S&#x9A8C;&#x8BC1;&#x7528;&#x6237;&#x4FE1;&#x606F;&#x540E;&#x5206;&#x6210;&#x4E0D;&#x540C;&#x6A21;&#x5F0F;</p>
<ul>
<li><p>&#x4E3B;&#x52A8;&#x8FDE;&#x63A5;</p>
<p>C&#x544A;&#x77E5;S&#x81EA;&#x8EAB;&#x5F00;&#x653E;&#x7684;port N</p>
<p>&#x7531;S:20&#x5411;C:N&#x53D1;&#x9001;&#x8FDE;&#x63A5;&#x8BF7;&#x6C42;</p>
</li>
</ul>
</li>
<li><p>&#x88AB;&#x52A8;&#x8FDE;&#x63A5;</p>
<p>  S&#x544A;&#x77E5;C&#x81EA;&#x8EAB;&#x7684;&#x5F00;&#x653E;port N</p>
<p>  &#x7531;C&#x5411;S:N&#x53D1;&#x9001;TCP&#x8BF7;&#x6C42;</p>
</li>
</ol>
<p>&#x5B8C;&#x6210;FTP&#x8FDE;&#x63A5;&#x5EFA;&#x7ACB;, &#x5F00;&#x59CB;&#x6570;&#x636E;&#x4F20;&#x8F93;</p>
<h2 id="&#x914D;&#x7F6E;&#x6D41;&#x7A0B;">&#x914D;&#x7F6E;&#x6D41;&#x7A0B;</h2>
<ol>
<li><p>&#x542F;&#x52A8;FTP&#x670D;&#x52A1;</p>
<ul>
<li>ftp [ipv6] server enable</li>
</ul>
</li>
<li><p>&#x4E3A;FTP&#x670D;&#x52A1;&#x6DFB;&#x52A0;&#x53EF;&#x7528;&#x7528;&#x6237;</p>
<ul>
<li>&#x7528;&#x6237;&#x5BC6;&#x7801;(local-user password)</li>
<li>&#x7528;&#x6237;&#x53EF;&#x7528;&#x670D;&#x52A1;&#x5217;&#x8868;(local-user service-type)</li>
<li>&#x7528;&#x6237;&#x6743;&#x9650;&#x7B49;&#x7EA7;(local-user privilege level)&gt;3</li>
</ul>
</li>
<li><p>&#x8BBE;&#x7F6E;&#x7CFB;&#x7EDF;FTP&#x9ED8;&#x8BA4;&#x5171;&#x4EAB;&#x76EE;&#x5F55;</p>
<ul>
<li>set default ftp-directory <code>&lt;path&gt;</code></li>
</ul>
</li>
<li><p>&#x66F4;&#x6539;&#x7528;&#x6237;FTP&#x9ED8;&#x8BA4;&#x76EE;&#x5F55;</p>
<ul>
<li>local-user <code>&lt;user&gt;</code> ftp-directory <code>&lt;path&gt;</code></li>
</ul>
</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="dns.html" class="navigation navigation-prev " aria-label="Previous page: DNS">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="http.html" class="navigation navigation-next " aria-label="Next page: HTTP">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"FTP","level":"6.4","depth":1,"next":{"title":"HTTP","level":"6.5","depth":1,"path":"service/http.md","ref":"./service/http.md","articles":[]},"previous":{"title":"DNS","level":"6.3","depth":1,"path":"service/dns.md","ref":"./service/dns.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"service/ftp.md","mtime":"2023-07-25T01:01:16.015Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-08-05T12:56:30.066Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

